home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
8bitfiles.net/archives
/
archives.tar
/
archives
/
geos-archive
/
GEOS-D64
/
GEOS Mega ASM (19xx)(-).d64
/
list-b-4.23
next >
Wrap
Text File
|
2019-04-13
|
1KB
|
61 lines
; Listing B.4.23
; *******************************
; * *
; * Demonstration der Routine *
; * *
; * BitmapClip *
; * *
; * *
; *******************************
if .p
t "TopSym"
t "TopMac"
endif
n "BitmapClip"
t "TestMen}"
:DoShow
LoadW r6,Filename ; Zeiger auf zu suchendes
; File (Photo Scrap)
LoadB r0L,1 ; an Adresse in r7 laden
LoadW r7,$4000 ; Ladeadresse
jsr GetFile
txa ; Fehler im x-Register
beq Read3 ; wenn Fehler --> EndShow
rts
:Read3 lda $4000
sta CardWidth
lda $4001
sta PixHLow
lda $4002
sta PixHHigh
LoadW r0,$4003
LoadB r1L,1
LoadB r1H,20
MoveB CardWidth,r2L
MoveB PixHLow,r2H
LoadW r11,0
LoadW r12,0
jsr BitmapClip ; Routine anspringen
rts ; Ende Unterprogramm
:Buffer s 256
:memTrSc w 0
:CardWidth b 0
:PixHLow b 0
:PixHHigh b 0
:memBuf w 0
:memNum w 0
:Filename b "Photo Scrap",0